package work.xiaohong.websocket;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author xiaohong
 * @version 1.0
 * @date 2021/9/25 0025 12:08
 * @description
 */
@SpringBootApplication
@ComponentScan(basePackages = {"work.xiaohong.websocket","work.xiaohong.common"})
@MapperScan(basePackages = {"work.xiaohong.websocket.dao"})
@EnableDiscoveryClient
@EnableFeignClients
@RefreshScope
public class WebSocketApplication {
    public static void main(String[] args) {
        SpringApplication.run(WebSocketApplication.class,args);
    }
}
